<<<<<<< HEAD
<?php
$id = $_GET['id'];
require_once '../../service/ActivityService.php';
require_once '../../service/UserService.php';
$acttivityService = new ActivityService();
$userService = new UserService();
$user = $userService->getCurrentUser();
$activity = array(
    'user_id'=>$user['id'],
    'goal_id'=>$id,
    'day'=>$day = date('Y-m-d'),
    'status'=>'success'      
);
$_activity = $acttivityService->saveActivity($activity);
echo json_encode($_activity);
return;
=======
<?php
$id = $_GET['id'];
require_once '../../service/ActivityService.php';
require_once '../../service/UserService.php';
$acttivityService = new ActivityService();
$userService = new UserService();
$user = $userService->getCurrentUser();
$activity = array(
    'user_id'=>$user['id'],
    'goal_id'=>$id,
    'day'=>$day = date('Y-m-d'),
    'status'=>'success'      
);
$_activity = $acttivityService->saveActivity($activity);
echo json_encode($_activity);
return;
>>>>>>> 20d6c557d209a3f376420616f57b4bd953611975
?>